package com.ccxc.question.exam.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@ApiModel(description = "答题汇总")
@NoArgsConstructor
@ToString
public class SummaryDTO {

    @ApiModelProperty(value = "ID")
    @Setter
    @Getter
    private int id;

    @ApiModelProperty(value = "用户ID")
    @Setter
    @Getter
    private String userid;

    @ApiModelProperty(value = "总成绩")
    @Setter
    @Getter
    private int score;

    @ApiModelProperty(value = "答题正确数")
    @Setter
    @Getter
    private int correct;

    @ApiModelProperty(value = "答题错误数")
    @Setter
    @Getter
    private int error;

    @ApiModelProperty(value = "答题总数")
    @Setter
    @Getter
    private int total_number;

    @ApiModelProperty(value = "排名")
    @Setter
    @Getter
    private int ranking;

    public SummaryDTO(int id, String userid, int score, int correct, int error, int total_number, int ranking) {
        this.id = id;
        this.userid = userid;
        this.score = score;
        this.correct = correct;
        this.error = error;
        this.total_number = total_number;
        this.ranking = ranking;

    }


}
